<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE" />
<title>内容列表页面</title>
<link href="<%= basePath %>css/all.css" rel="stylesheet" type="text/css" />
<script src="<%=basePath %>js/jquery-1.8.0.min.js"></script>
<script src="<%=basePath %>js/list.js"></script>
<title>JSP Page</title>
</head>

<body style="background: #e1e9eb;">
		<div class="right">
			<div class="current">
				当前位置：<a href="<%=basePath %>excelList" style="color: #6E6E6E;">excel表管理</a>
				&gt; 内容列表
			</div>
			<div class="rightCont">
				<p class="g_title fix">
					内容列表 
					<a class="btn03"href="<%=basePath%>leadingExcel">新增excel表</a>&nbsp;&nbsp;&nbsp;&nbsp;
					<a class="btn03"href="<%=basePath%>cleanAll">清空</a>
				</p>
				<div class="zixun fix">
					<table class="tab2" width="100%">
						<tr>
							<th>编号</th>
							<th>excel表名</th>
							<th>操作</th>
						</tr>
						<c:forEach items="${excelList}" var="excel" varStatus="index">
							<tr
							<c:if test="${index.count%2 == 0}">style='background-color:#ECF6EE;'</c:if>>
								<td>${excel.id}</td>
								<td>${excel.name}</td>
								<td>
									<a href="<%=basePath%>deleteExcel?id=${excel.id}">删除</a>&nbsp;&nbsp;
									<a href="<%=basePath%>dataList?excelnum=${excel.excelnum}">查看</a>
								</td>
							</tr>
						</c:forEach>
						
					</table>

				</div>
			</div>
		</div>
</body>
</html>
